package iPersistence.sqlSession;


import iPersistence.pojo.Configuration;

/**
 * @author Feuler
 * @since 2020/11/6
 **/

public class DefaultSqlSessionFactory implements SqlSessionFactory {

    private final Configuration configuration;

    public DefaultSqlSessionFactory(Configuration configuration) {
        this.configuration = configuration;
    }

    @Override
    public SqlSession openSession() {
        return new DefaultSqlSession(configuration);
    }
}
